.class public Lcom/estrongs/android/pop/app/log/adapter/a;
.super Lcom/estrongs/android/pop/app/log/adapter/b;
.source "LogChooseApkAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/log/adapter/a$b;
    }
.end annotation


# instance fields
.field private f:Lcom/estrongs/android/pop/app/log/adapter/a$b;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Lcom/estrongs/android/pop/app/log/adapter/a$b;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;",
            ">;",
            "Lcom/estrongs/android/pop/app/log/adapter/a$b;",
            ")V"
        }
    .end annotation

    .line 1
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/pop/app/log/adapter/b;-><init>(Landroid/content/Context;Ljava/util/List;)V

    .line 2
    iput-object p3, p0, Lcom/estrongs/android/pop/app/log/adapter/a;->f:Lcom/estrongs/android/pop/app/log/adapter/a$b;

    return-void
.end method

.method private f()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v1, 0x0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    .line 2
    iget-boolean v2, v2, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;->isEmptyView:Z

    if-nez v2, :cond_0

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 3
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/a;->f:Lcom/estrongs/android/pop/app/log/adapter/a$b;

    invoke-interface {v0, v1}, Lcom/estrongs/android/pop/app/log/adapter/a$b;->a(I)V

    return-void
.end method

.method private g()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/log/adapter/b;->c()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->d:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->c:Ljava/util/ArrayList;

    new-instance v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    const/4 v2, 0x1

    invoke-direct {v1, v2}, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;-><init>(Z)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->b:Ljava/util/List;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;

    iput v1, v0, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;->count:I

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->b:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->d:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    iput v1, v0, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;->count:I

    return-void
.end method

.method private h()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/log/adapter/b;->c()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->c:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->d:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->d:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->b:Ljava/util/List;

    const/4 v1, 0x1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;

    const/4 v1, 0x0

    iput v1, v0, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;->count:I

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->b:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->c:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    iput v1, v0, Lcom/estrongs/android/pop/app/log/LogChooseApkGroupInfo;->count:I

    return-void
.end method


# virtual methods
.method public a(IILandroid/view/View;)Landroid/view/View;
    .locals 3
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .line 1
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/pop/app/log/adapter/b;->getChild(II)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    const/4 p2, 0x0

    if-nez p3, :cond_0

    .line 2
    iget-object p3, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->e:Landroid/view/LayoutInflater;

    const v0, 0x7f0c0256

    invoke-virtual {p3, v0, p2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p3

    .line 3
    new-instance v0, Lcom/estrongs/android/pop/app/log/viewHolder/LogFileTypeContentViewHolder;

    invoke-direct {v0, p3}, Lcom/estrongs/android/pop/app/log/viewHolder/LogFileTypeContentViewHolder;-><init>(Landroid/view/View;)V

    .line 4
    invoke-virtual {p3, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    goto :goto_0

    .line 5
    :cond_0
    invoke-virtual {p3}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/log/viewHolder/LogFileTypeContentViewHolder;

    .line 6
    :goto_0
    iget-object v1, v0, Lcom/estrongs/android/pop/app/log/viewHolder/LogFileTypeContentViewHolder;->a:Landroid/widget/ImageView;

    iget-object v2, p1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;->appIcon:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 7
    iget-object v1, v0, Lcom/estrongs/android/pop/app/log/viewHolder/LogFileTypeContentViewHolder;->b:Landroid/widget/TextView;

    iget-object v2, p1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;->textId:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 8
    iget-object v1, v0, Lcom/estrongs/android/pop/app/log/viewHolder/LogFileTypeContentViewHolder;->c:Landroid/widget/CheckBox;

    invoke-virtual {v1, p2}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 9
    iget-object p2, v0, Lcom/estrongs/android/pop/app/log/viewHolder/LogFileTypeContentViewHolder;->c:Landroid/widget/CheckBox;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->c:Ljava/util/ArrayList;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v1

    invoke-virtual {p2, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 10
    iget-object p2, v0, Lcom/estrongs/android/pop/app/log/viewHolder/LogFileTypeContentViewHolder;->c:Landroid/widget/CheckBox;

    new-instance v0, Lcom/estrongs/android/pop/app/log/adapter/a$a;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/pop/app/log/adapter/a$a;-><init>(Lcom/estrongs/android/pop/app/log/adapter/a;Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;)V

    invoke-virtual {p2, v0}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    return-object p3
.end method

.method public a(ZLcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;)V
    .locals 0

    .line 11
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/pop/app/log/adapter/b;->b(ZLcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;)V

    .line 12
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/log/adapter/a;->f()V

    .line 13
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/log/adapter/b;->a(Z)V

    return-void
.end method

.method public b(Z)V
    .locals 0

    if-eqz p1, :cond_0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/log/adapter/a;->h()V

    goto :goto_0

    .line 2
    :cond_0
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/log/adapter/a;->g()V

    .line 3
    :goto_0
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/log/adapter/a;->f()V

    return-void
.end method

.method public e()Ljava/util/ArrayList;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList<",
            "Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/adapter/b;->d:Ljava/util/ArrayList;

    return-object v0
.end method
